import java.util.Scanner;

public class Test2 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		System.out.print("请输入您的性别");
		char gender = s.next().charAt(0);
		
		System.out.print("请输入您是否已婚 ,已未婚用Y和N表示， 性别用男和女表示");
		char ifMarry = s.next().charAt(0);
		
		System.out.print("请输入您的年龄");
		int year = s.nextInt();
		
		if(ifMarry == 'Y') {
			System.out.println("能够提供保险");
		}else {
			if(gender == '男') {
				if(year<25) {
					System.out.println("不能提供保险");
				}else {
					System.out.println("提供保险");
				}
			}else if(gender == '女') {
				if(year<22) {
					System.out.println("不能提供保险");
				}else {
					System.out.println("提供保险");
				}
			}
		}
	}

}
